function main() {
    Java.perform(function () {

        let gogogoJNI = Java.use("com.example.assemgogogo.gogogoJNI");
        gogogoJNI["sayHello"].implementation = function () {
            console.log(`gogogoJNI.sayHello is called`);
            let result = this["sayHello"]();
            console.log(`gogogoJNI.sayHello result=${result}`);
            return result;
        };
    })
}

function hookNative() {
    const libName = 'libgogogo.so'
    const baseAddr = Module.findBaseAddress(libName)
    console.log("base",baseAddr)
    console.log(baseAddr.add(0x12008).readCString())
}

setTimeout(hookNative,50)




// setImmediate(main)